package com.example.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * Description : StockFeignClient
 *
 * @author : Mr.Liang
 * @version : v1.0
 * @date : 2021/11/10
 */
@FeignClient(name = "stock-service")
public interface StockFeignClient {

    @GetMapping("/stock/deduct")
    Boolean deduct(@RequestParam("commodityCode") String commodityCode, @RequestParam("count") Integer count);
}
